<?php
$this->Html->addCrumb('<i class="fa fa-home"></i> ' . Inflector::camelize($this->request->params ['prefix']), '/' . $this->request->params ['prefix'] . '/', array('escape' => false));
$this->Html->addCrumb(__('Products'), array('prefix' => $this->request->params['prefix'], 'controller' => $this->request->params['controller'], 'plugin' => $this->request->params['plugin'], 'action' => 'index'), array('escape' => false));
$this->Html->addCrumb(__('List'), NULL, array('escape' => false));

$this->Html->setAcoes('<i class="fa fa-plus"></i>' . __('New'), array('action' => 'add'), array('title' => __('new'), 'class' => 'btn btn-success', 'escapeTitle' => false));
$this->Html->setAcoes('<i class="fa fa-pencil"></i>' . __('Edit'), array('action' => 'edit',$product['Product']['id']), array('title' => __('edit'), 'class' => 'btn btn-warning', 'escapeTitle' => false));
$this->Html->setAcoes('<i class="fa fa-search"></i>' . __('List'), array('action' => 'index'), array('title' => __('List'), 'class' => 'btn btn-info', 'escapeTitle' => false));
?>

<table class="table table-striped table-bordered table-condensed table-hover">
    <tr>
        <td>Id</td>
        <td><?php echo h($product['Product']['id']); ?></td>
    </tr>
    <tr>
        <td>Name</td>
        <td><?php echo h($product['Product']['name']); ?></td>
    </tr>
    <tr>
        <td>Slug</td>
        <td><?php echo h($product['Product']['slug']); ?></td>
    </tr>
    <tr>
        <td>Description</td>
        <td><?php echo $product['Product']['description']; ?></td>
    </tr>
    <tr>
        <td>Price</td>
        <td><?php echo h($product['Product']['price']); ?></td>
    </tr>
    <tr>
        <td>Weight</td>
        <td><?php echo h($product['Product']['weight']); ?></td>
    </tr>
    <tr>
        <td>Brand</td>
        <td><?php echo h($product['Brand']['name']); ?></td>
    </tr>
    <tr>
        <td>Category</td>
        <td><?php echo h($product['Category']['name']); ?></td>
    </tr>
    <tr>
        <td>Tags</td>
        <td><?php echo h($product['Product']['tags']); ?></td>
    </tr>
    <tr>
        <td>Active</td>
        <td><?php echo $this->Html->status($product['Product']['active']); ?></td>
    </tr>
    <tr>
        <td>Created</td>
        <td><?php echo h($product['Product']['created']); ?></td>
    </tr>
    <tr>
        <td>Modified</td>
        <td><?php echo h($product['Product']['modified']); ?></td>
    </tr>
</table>

<div>
    <?php
    if (count($product['ProductsImage']) > 0) {
        foreach ($product['ProductsImage'] as $key => $value) {
            echo $this->Html->Image('/images/' . $value['image'], array('alt' => $value['Product']['name'], 'class' => 'image col-xs-12 col-sm-4 col-md-3'));
        }
    }
    ?>
</div>